
#include "Square.h"
#include "Rectangle.cc"

Square::Square(double side) : rec(side, side)
{
}

double Square::getSide(void) const
{
    return rec.getWidth();
}

void Square::setSide(double width)
{
    rec.setLength(width);
    rec.setWidth(width);
}

double Square::getPerimeter(void) const
{
    return rec.getPerimeter();
}

double Square::getArea(void) const
{
    return rec.getArea();
}

